package difactroy

import (
	"gitee.com/ichub/goconfig/common/base/baseiface"
	"gitee.com/ichub/goconfig/common/basedi"
)

const single_nameStructInfo = "StructInfo"

// init
// register
// load
func init() {
	registerBeanStructInfo()
}

// register StructInfo
func registerBeanStructInfo() {
	basedi.RegisterLoadBean(single_nameStructInfo, LoadStructInfo)
}

func FindBeanStructInfo() *StructInfo {
	return basedi.FindBean(single_nameStructInfo).(*StructInfo)
}

func LoadStructInfo() baseiface.ISingleton {
	return NewStructInfo()
}
